/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/14 18:39:22
 */
Ext.define('Monkey.view.organization.OrganizationModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.vm-organization',

    data: {
        isAdd: false,
        id: 0,
        parentId: '',
        name: '',
        identity: '',
        view: '',
        icon: '',
        type: '',
        weight: 1,
        expand: false,
        status: 'ENABLE'
    },


    setModelData: function (data) {
        this.data.id = data.id;
        this.data.parentId = data.parentId;
        this.data.name = data.name;
        this.data.identity = data.identity;
        this.data.view = data.view;
        this.data.icon = data.icon;
        this.data.weight = data.weight;
        this.data.expand = data.expand;
        this.data.status = data.status;
        this.data.type = data.type;
    }
});